﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FastPoster.Helpers
{
    #region USING
    using FastPoster.MainClasses;
    #endregion

    /// <summary>
    ///  Class is used to transfer data
    /// </summary>
    public class TransferDataEvent : EventArgs
    {
        public string Data { get; set; }
        public TransferDataEvent(string _data)
        {
            Data = _data;
        }
    }

    /// <summary>
    /// Transferes box list
    /// </summary>
    public class TransferBoxListEvent : EventArgs
    {
        public List<Poster>     Data { get; set; }
        public int              IDM { get; set; }
        public string           Subj { get; set; }
        public string           Mess { get; set; }

        public TransferBoxListEvent(List<Poster> _data, int idm, string subj, string mess)
        {
            Data = _data;
            IDM = idm;
            Subj = subj;
            Mess = mess;
        }
    }

    public class ProgressChangedArgs : EventArgs
    {
        public int Index { get; set; }
        public string ProgressState { get; set; }

        public ProgressChangedArgs(string progressState)
        {
            this.ProgressState = progressState;
        }

        public ProgressChangedArgs(int index, string progressState)
        {
            this.ProgressState = progressState;
            this.Index = index;
        }
    }
}
